/*java jdk 1.7+
# -*- coding: utf-8 -
'''
Created on 2020年05月10日
@author: zxyong 13738196011
'''*/

package com.zxy.tcp;

import com.zxy.common.Com_Fun;
import com.zxy.common.ParamName_InterFace;

public class CustTimeTask extends java.util.TimerTask
{
	public boolean bTimeFlag			= true;
	public String	REFLECT_IN_CLASS	= "";

	@Override
	public void run()
	{
		if(bTimeFlag)
		{
			bTimeFlag = false;
			// 接口输入反射类调用
			if(!REFLECT_IN_CLASS.equals(""))
			{
				try
				{
					Class<?> objC = Class.forName(REFLECT_IN_CLASS);
					ParamName_InterFace pni = (ParamName_InterFace) objC.newInstance();
					pni.init_start();
				}
				catch(Exception e)
				{
					Com_Fun.debug_in(e,this.toString(),REFLECT_IN_CLASS + "自定义定时器拦截器执行函数失败!");
				}
			}
			bTimeFlag = true;
		}
	}
}
